import RequestUtil from '@/utils/request-util';
import Request from '@/utils/request';

/**
 * 供电管理api
 *
 * @author fengshuonan
 * @date 2021/4/1 16:06
 */
export class GdInfoApi {
    //获取
    static find(params) {
        return RequestUtil.getAndLoadData('/feathers/gd-base-info', params);
    }
    //删除
    static delete(id) {
        return Request.delete(`/feathers/gd-base-info/${id}`)
    }
    //添加
    static addBasicInfo(params) {
        return Request.post(`/feathers/gd-base-info`,params) 
    }
    //编辑
    static editBasicInfo(id,params) {
        return Request.patch(`/feathers/gd-base-info/${id}`,params)
    }
}